package com.blazer.b;

public class arrayhb {
    public static void main(String[] args) {
        int[] arr1={1,2,3};
        int[] arr2={4,5,6};
        int[] newarr=new int[arr1.length+arr2.length];
        for (int i=0;i<arr1.length;i++){
            newarr[i]=arr1[i];
        }
        for (int ii=0;ii<arr2.length;ii++){
            newarr[arr2.length+ii]=arr2[ii];
        }
        for (int j=0;j<newarr.length;j++){
            System.out.println(newarr[j]);
        }

    }

}
